How many runs can a string contain?
نویسندگان
چکیده
منابع مشابه
How many runs can a string contain?
Given a string x = x[1..n], a repetition of period p in x is a substring ur = x[i+1..i+rp], p = |u|, r ≥ 2, where neither u = x[i+1..i+p] nor x[i+1..i+(r+1)p+1] is a repetition. The maximum number of repetitions in any string x is well known to be Θ(n log n). A run or maximal periodicity of period p in x is a substring urt = x[i+1..i+rp+ |t|] of x, where ur is a repetition, t a proper prefix of...
متن کاملHow Many Squares Can a String Contain?
All our words (strings) are over a fixed alphabet. A square is a subword of the form uu=u, where u is a nonempty word. Two squares are distinct if they are of different shape, not just translates of each other. A word u is primitive if u cannot be written in the form u=v j for some j 2. A square u with u primitive is primitive rooted. Let M(n) denote the maximum number of distinct squares, P(n)...
متن کاملHow many double squares can a string contain?
Counting the types of squares rather than their occurrences, we consider the problem of bounding the number of distinct squares in a string. In 1998 Fraenkel and Simpson showed that a string of length n contains at most 2n distinct squares. In 2007 Ilie provided an asymptotic upper bound of 2n−Θ(log n). We show that a string of length n contains at most b5n/3c distinct squares. This new upper b...
متن کاملHow Many Holes Can an Unbordered Partial Word Contain?
Partial words are sequences over a finite alphabet that may have some undefined positions, or “holes,” that are denoted by ’s. A nonempty partial word is called bordered if one of its proper prefixes is compatible with one of its suffixes (here is compatible with every letter in the alphabet); it is called unbordered otherwise. In this paper, we investigate the problem of computing the maximum ...
متن کاملHow Many Square Occurrences Must a Binary Sequence Contain?
Every binary word with at least four letters contains a square. A. Fraenkel and J. Simpson showed that three distinct squares are necessary and sufficient to construct an infinite binary word. We study the following complementary question: how many square occurrences must a binary word contain? We show that this quantity is, in the limit, a constant fraction of the word length, and prove that t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Theoretical Computer Science
سال: 2008
ISSN: 0304-3975
DOI: 10.1016/j.tcs.2008.04.020